// var sub;//top.sys.userName(1);
var exportJs;
$(function () {
    // sub = subInfo();
    exportJs = init();

    function init() {
        return {
            exportTip: function (params, layer) {
                $.post(top.ctx + "/animal/exportRecord/export", params, function (data) {
                    if (data.code == 0) {
                        layer.open({
                            type: 1
                            ,
                            content: '<div style="padding: 20px 40px;">' + data.msg + '，<a onclick="parent.open(\'animal/exportRecord\');layer.closeAll();">点击前往文件管理中心</a>' + '</div>'
                            ,
                            btn: '知道了'
                            ,
                            btnAlign: 'c' //按钮居中
                            ,
                            shade: 0 //不显示遮罩
                            ,
                            yes: function () {
                                layer.closeAll();
                            }
                        });
                    } else {
                        layer.alert(data.msg);
                    }
                });
            }
        };
    }
});
